<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>登陆</title>
    <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
    <script src="https://cdn.staticfile.org/vue-resource/1.5.1/vue-resource.min.js"></script>
</head>
<body>
<h2  style="text-align:center;color: #1E9FFF"> 点击图标登陆</h2>
<input type="hidden">
<a href="javascript:void(0);" onclick="toGitHub()">
    <img src="/img/github.jpg" width="180px" height="180px" alt="github授权登陆">
    <script>
        function toGitHub(){
            Vue.http.post('/getGithubUrl')
                .then((res)=>{
                    parent.window.location.href=res.data.data;
                    layer.close(parent.layer.getFrameIndex(window.name));
                },(error)=>{
                    console.log(error);
                });
        }
    </script>
</a>
<br>
<a>
    <img src="/img/qq.jpg" width="180px" height="180px" alt="qq授权登陆">
</a>
</body>
</html>